package com.lebang.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import lombok.Data;

/**
 * cences_master
 *
 * @author
 */
@Data
@ApiModel("")
public class CencesMaster implements Serializable {
    /**
     * id
     */
    @ApiModelProperty("id")
    private Integer id;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private LocalDate createTime;

    /**
     * 记录日期
     */
    @ApiModelProperty("记录日期")
    private Integer time;

    /**
     * 收徒数
     */
    @ApiModelProperty("收徒数")
    private Integer apprenticeCount;

    /**
     * 徒弟佣金
     */
    @ApiModelProperty("徒弟佣金")
    private Integer rebateApprenticeMoney;

    /**
     * 收徒孙数
     */
    @ApiModelProperty("收徒孙数")
    private Integer discipleCount;

    /**
     * 徒孙佣金
     */
    @ApiModelProperty("徒孙佣金")
    private Integer rebateDiscipleMoney;

    /**
     * 安装渠道
     */
    @ApiModelProperty("安装渠道")
    private String brand;

    /**
     * 1总计0分渠道
     */
    @ApiModelProperty("1总计0分渠道")
    private Integer type;

    /**
     * 1新用户0老用户
     */
    @ApiModelProperty("1新用户0老用户")
    private Integer category;

    /**
     * 应用id
     */
    @ApiModelProperty("应用id")
    private Integer appId;

    private static final long serialVersionUID = 1L;



    public CencesMaster(int i, String appStore, int time, int category,int type,Integer appId) {
        this.apprenticeCount = i;
        this.discipleCount = i;
        this.rebateApprenticeMoney = i;
        this.rebateDiscipleMoney = i;
        this.brand=appStore;
        this.time=time;
        this.category=category;
        this.type=type;
        this.createTime= LocalDate.now();
        this.appId=appId;
    }

    public CencesMaster() {
    }
}